<h1>Listing writs</h1>

<table>
  <tr>
    <th>Writ</th>
    <th>User</th>
  </tr>

<% @writs.each do |writ| %>
  <tr>
    <td><%=h writ.writ %></td>
    <td><%=h writ.user_id %></td>
    <td><%= link_to 'Show', writ %></td>
    <td><%= link_to 'Edit', edit_writ_path(writ) %></td>
    <td><%= link_to 'Destroy', writ, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New writ', new_writ_path %>